/**
  ******************************************************************************
  * @file    rs485.h
  * @brief   This file contains all the function prototypes for
  *          the rs485.c file
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2023 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _RS485_H_
#define _RS485_H_

#ifdef __cplusplus
extern "C" {
#endif

/* Includes */
#include "DSP2803x_Device.h"     				// DSP2803x Headerfile Include File
#include "DSP2803x_GlobalPrototypes.h"         // Prototypes for global functions within the

#include "systick.h"
/* Configuration defines */
#ifdef PROJECT_OUTPUT
#define RS485_DE_RE_PIN             $@{rs485_dere_pin}@$
#define RS485_UART_NO               $@{uart_no}@$
#else
#define RS485_DE_RE_PIN             GPIO44
#define RS485_UART_NO               0
#endif


void RS485_Init(void);
void RS485_SendData(char*buff,int len);


#endif
